#include "BrowserLayout.h"
#include "delegate/CstmTreeViewDelegate.h"
#include "BrowserTreeWidget.h"

BrowserLayout::BrowserLayout()
{

}



BrowserLayout::BrowserLayout(
    QVBoxLayout* widget)
{
    widget->addLayout(this);
    widget->addSpacing(0);
    //widget->addStretch();
    this->add_sub_widget();
}



BrowserLayout::~BrowserLayout()
{}



void
BrowserLayout::add_sub_widget()
{

    BrowserTreeWidget* widget = new BrowserTreeWidget (NULL);
    this->addWidget(widget);
    this->setStretchFactor(widget, 1);
}
